var e = require;
var t = module;
var n = exports;
Object.defineProperty(n, "__esModule", {value: !0}), (n.playerTheme = void 0);
var o = e("Exceltheme"),
    i = e("user-data"),
    e =
        ((r.prototype.getCoinLabelNames = function () {
            var e = this.getCurTheme();
            return (
                (e < 0 || e >= this.coinLabelNames.length) && (console.log("curTheme error:", e), (e = 0)),
                this.coinLabelNames[e]
            );
        }),
        (r.prototype.getWarCoinLabelNames = function () {
            return this.coinLabelNames[0];
        }),
        (r.prototype.getThemeLock = function (e) {
            if (0 === e) return !1;
            e = i.userData.getLocalData()["theme" + e];
            return null == e || e;
        }),
        (r.prototype.setThemeLock = function (e, t) {
            var n = {};
            (n["theme" + e] = t), i.userData.setLocalData(n);
        }),
        (r.prototype.getCurTheme = function () {
            var e = i.userData.getLocalData().cur_theme;
            return null == e ? 0 : Number(e);
        }),
        (r.prototype.setCurTheme = function (e) {
            i.userData.setLocalData({cur_theme: e});
        }),
        (r.prototype.getCurThemeName = function () {
            var e = this.getCurTheme();
            return (
                e >= o.default.Data.length && (console.log("curTheme error:", e, o.default.Data.length), (e = 0)),
                o.default.GetLine(e + 1).name
            );
        }),
        r);
function r() {
    (this.coinLabelNames = []),
        (this.coinLabelNames[0] = [
            "skin/coin/Num1",
            "skin/coin/Num2",
            "skin/coin/Num3",
            "skin/coin/Num4",
            "skin/coin/Num5",
            "skin/coin/Num6",
            "skin/coin/Num7",
            "skin/coin/Num8",
            "skin/coin/Num9",
            "skin/coin/Num10"
        ]),
        (this.coinLabelNames[1] = [
            "mahjong/tong1",
            "mahjong/tong2",
            "mahjong/tong3",
            "mahjong/tong4",
            "mahjong/tong5",
            "mahjong/tong6",
            "mahjong/tong7",
            "mahjong/tong8",
            "mahjong/tong9",
            "mahjong/hu"
        ]),
        (this.coinLabelNames[2] = [
            "mahjong/tiao1",
            "mahjong/tiao2",
            "mahjong/tiao3",
            "mahjong/tiao4",
            "mahjong/tiao5",
            "mahjong/tiao6",
            "mahjong/tiao7",
            "mahjong/tiao8",
            "mahjong/tiao9",
            "mahjong/hu"
        ]),
        (this.coinLabelNames[3] = [
            "mahjong/wan1",
            "mahjong/wan2",
            "mahjong/wan3",
            "mahjong/wan4",
            "mahjong/wan5",
            "mahjong/wan6",
            "mahjong/wan7",
            "mahjong/wan8",
            "mahjong/wan9",
            "mahjong/hu"
        ]);
}
n.playerTheme = new e();
